﻿@{
    ViewBag.Title = "Dịch vụ rao vặt trực tuyến - mọi thứ bạn cần";
}

@model List<CanDichVu.Db.ChuyenMuc>
@{ CanDichVu.FrameWork.Helper.HtmlHelper HtmlHelpers = new CanDichVu.FrameWork.Helper.HtmlHelper();}

@{ int i = 1;}
@foreach (var item in Model)
{

    if (i % 3 == 0)
    {
        <div class="left_home_div mar_rg_div_none">
            <div class="Load_Info">
                <h2 class="widget-title"><a href="/dich-vu/@item.Id/@HtmlHelpers.RemoveSign4VietnameseString(item.TenChuyenMuc)">@item.TenChuyenMuc</a> </h2>
                @Html.Action("GetCateLoadOnHome","Cate", new {parentId = item.Id})
                <div class="clear"></div>
                <div class="ads_home_cate">
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width="300" height="250" __idm_id__="1538058">
                        <param name="movie" value="http://st.polyad.net/AdImages/2013/12/19/trananh_300X250_191213(1).swf">
                        <param name="AllowScriptAccess" value="always">
                        <param name="quality" value="High">
                        <param name="FlashVars" value="link=http%3A//180.148.142.153/clk.aspx%3Flg%3D-1%26t%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26l%3Dhttp%253A//trananh.vn/%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.25711695197969675%26ui%3Dd800823360b29837-1000000-1000000&amp;zoneid=LargeLogo4&amp;actionTag=http%3A//180.148.142.153/act.aspx%3Ft%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.6474434221163392">
                        <embed src="http://st.polyad.net/AdImages/2013/12/19/trananh_300X250_191213(1).swf" flashvars="link=http%3A//180.148.142.153/clk.aspx%3Flg%3D-1%26t%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26l%3Dhttp%253A//trananh.vn/%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.25711695197969675%26ui%3Dd800823360b29837-1000000-1000000&amp;zoneid=LargeLogo4&amp;actionTag=http%3A//180.148.142.153/act.aspx%3Ft%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.6474434221163392" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" play="true" loop="true" allowscriptaccess="always" width="300" height="250&quot;" __idm_id__="1538060"></object>
                </div>
            </div>
            <div class="thumb-shadow">&nbsp;</div>
        </div>
        <div class="clear"></div>
    }
    else
    {
        <div class="left_home_div">
            <div class="Load_Info">
                <h2 class="widget-title"><a href="/dich-vu/@item.Id/@HtmlHelpers.RemoveSign4VietnameseString(item.TenChuyenMuc)"> @item.TenChuyenMuc </a></h2>
                @Html.Action("GetCateLoadOnHome","Cate", new {parentId = item.Id})
                <div class="clear"></div>
                <div class="ads_home_cate">
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width="300" height="250" __idm_id__="1538058">
                        <param name="movie" value="http://st.polyad.net/AdImages/2013/12/19/trananh_300X250_191213(1).swf">
                        <param name="AllowScriptAccess" value="always">
                        <param name="quality" value="High">
                        <param name="FlashVars" value="link=http%3A//180.148.142.153/clk.aspx%3Flg%3D-1%26t%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26l%3Dhttp%253A//trananh.vn/%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.25711695197969675%26ui%3Dd800823360b29837-1000000-1000000&amp;zoneid=LargeLogo4&amp;actionTag=http%3A//180.148.142.153/act.aspx%3Ft%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.6474434221163392">
                        <embed src="http://st.polyad.net/AdImages/2013/12/19/trananh_300X250_191213(1).swf" flashvars="link=http%3A//180.148.142.153/clk.aspx%3Flg%3D-1%26t%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26l%3Dhttp%253A//trananh.vn/%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.25711695197969675%26ui%3Dd800823360b29837-1000000-1000000&amp;zoneid=LargeLogo4&amp;actionTag=http%3A//180.148.142.153/act.aspx%3Ft%3D5%26i%3D0%26b%3D50303%26s%3D1%26r%3D0%26c%3D1%26p%3D12%26n%3D0%26uc%3D32%26uv%3Dundefined%26ud%3D1366x768%26rd%3D0.6474434221163392" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" play="true" loop="true" allowscriptaccess="always" width="300" height="250&quot;" __idm_id__="1538060"></object>
                </div>
            </div>
            <div class="thumb-shadow">&nbsp;</div>
        </div>
    }

    i++;
}

<div class="clear border"></div>

<div id="verticalTab">
    <ul class="resp-tabs-list">
        <li>Có thể bạn quan tâm ?</li>
        @foreach (var itembt in Model)
        {
            <li>@itembt.TenChuyenMuc</li>
        }
    </ul>
    <div class="resp-tabs-container">
        <div>
            <div id="raovat_home_category" class="raovat_view_list_div">
                <script type="text/javascript">
                    loadPartiview("._listPostHomeTQ", '@Url.Action("ListPostOnCateHomePage", "Post", new { cate = 0, take = 18 })');
                </script>
                <div class="_listPostHomeTQ">
                    <img src="~/Content/images/loading_html.gif" />
                </div>
                <div class="view_all"><a class="text_link" href="/">Xem tất cả</a></div>
            </div>
            <div class="line_hor_list_rao_vat"></div>
        </div>
        <div class="clear"></div>
        @foreach (var itembt_post in Model)
        {
            <div>
                <div id="raovat_home_category_@itembt_post.Id" class="raovat_view_list_div">
                    <script type="text/javascript">
                        loadPartiview("._listPostHome_@itembt_post.Id", '@Url.Action("ListPostOnCateHomePage", "Post", new { cate = itembt_post.Id, take = 18 })');
                    </script>
                    <div class="_listPostHome_@itembt_post.Id">
                        <img src="~/Content/images/loading_html.gif" />
                    </div>
                </div>
                <div class="view_all"><a class="text_link" href="/dich-vu/@itembt_post.Id/@HtmlHelpers.RemoveSign4VietnameseString(itembt_post.TenChuyenMuc)">Xem tất cả</a></div>
            </div>
        }

    </div>
</div>
<div class="clear"></div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#verticalTab').easyResponsiveTabs({
            type: 'vertical',
            width: 'auto',
            fit: true
        });

        initialize_maps(10.82319, 106.629682);
    });
   
</script>

<div class="loading_maps">
    <div class="maps_titles">
        <h3 class="title_h3">Bản đồ các công ty dịch vụ</h3>

    </div>
    <div id="maps_company" style="width: 1000px; height: 500px">
    </div>
</div>
